package net.tarine.oracolo.client.service;

import net.tarine.oracolo.shared.model.Account;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("auth")
public interface AuthService extends RemoteService {
	public Account getAccountByToken(String token) throws IllegalArgumentException;
	public Account saveOrUpdateAccount(Account account) throws IllegalArgumentException;
	public Boolean removeAccount(Account account) throws IllegalArgumentException;
}
